package org.lboot.llog.module;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.support.JpaRepositoryImplementation;

import java.util.List;

public interface ApiLogEntityDAO extends JpaRepositoryImplementation<ApiLogEntity, Long> {

    @Query("SELECT DISTINCT u.module FROM ApiLogEntity u")
    List<String> findDistinctModule();

    List<ApiLogEntity> findByTraceId(String traceId);
}
